package com.zwb.demo.easyweb.common.entity;

/**
 * 数据状态枚举
 *
 * @author zwb
 */
public enum DataStateEnum implements ValueEnum<Integer> {

    /** 已删除 */
    DELETED(-1, "已删除"),

    /** 正常 */
    NORMAL(0, "正常"),

    /** 禁用 */
    DISABLED(1, "禁用"),

    /** 启用 */
    ENABLED(2, "启用");

    private Integer value;

    private String key;

    DataStateEnum(Integer value, String key) {
        this.value = value;
        this.key = key;
    }

    /**
     * Gets enum key.
     *
     * @return enum key
     */
    @Override
    public String getKey() {
        return key;
    }

    /**
     * Gets enum value.
     *
     * @return enum value
     */
    @Override
    public Integer getValue() {
        return value;
    }


}
